package com.lemon.blog.system.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.lemon.common.core.serializer.JsonLongDeserializer;
import com.lemon.common.core.serializer.JsonLongSerializer;
import com.lemon.common.core.base.BaseEntity;

/**
 * 包名称：com.lemon.common.core.domain.entity
 * 类名称：BlAbout
 * 类描述：关于闲言表
 * 创建人：@author huangpeng 
 * 创建时间：2022年04月10日 00:03
 */
public class BlAbout extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
    * 帖子id
    */
    @JsonSerialize(using = JsonLongSerializer.class)
    @JsonDeserialize(using = JsonLongDeserializer.class)
    private Long id;

    /**
    * 标题
    */
    private String aboutTitle;

    /**
    * 帖子内容
    */
    private String aboutContent;

    /**
    * 阅读数
    */
    private Integer aboutRead;

    /**
    * 乐观锁
    */
    private Integer version;

    /**
    * 是否启用，0否1是
    */
    private Integer enable;

    /**
     * 是否开启评论，0否1是
     */
    private String commentOpen;

    /**
     * 点踩数量-前端使用
     */
    private Integer blogNoGoods;

    /**
     * 点赞数
     */
    private Long blogGoods;

    /**
     * 收藏数
     */
    private Long blogCollection;

    /**
     * 评论数
     */
    private Long blogComment;

    /**
     * 管理员id
     */
    @JsonSerialize(using = JsonLongSerializer.class)
    @JsonDeserialize(using = JsonLongDeserializer.class)
    private Long adminId;

    /**
     * 创作者用户id
     */
    @JsonSerialize(using = JsonLongSerializer.class)
    @JsonDeserialize(using = JsonLongDeserializer.class)
    private Long userId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAboutTitle() {
        return aboutTitle;
    }

    public void setAboutTitle(String aboutTitle) {
        this.aboutTitle = aboutTitle;
    }

    public String getAboutContent() {
        return aboutContent;
    }

    public void setAboutContent(String aboutContent) {
        this.aboutContent = aboutContent;
    }

    public Integer getAboutRead() {
        return aboutRead;
    }

    public void setAboutRead(Integer aboutRead) {
        this.aboutRead = aboutRead;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public String getCommentOpen() {
        return commentOpen;
    }

    public void setCommentOpen(String commentOpen) {
        this.commentOpen = commentOpen;
    }

    public Integer getBlogNoGoods() {
        return blogNoGoods;
    }

    public void setBlogNoGoods(Integer blogNoGoods) {
        this.blogNoGoods = blogNoGoods;
    }

    public Long getBlogGoods() {
        return blogGoods;
    }

    public void setBlogGoods(Long blogGoods) {
        this.blogGoods = blogGoods;
    }

    public Long getBlogCollection() {
        return blogCollection;
    }

    public void setBlogCollection(Long blogCollection) {
        this.blogCollection = blogCollection;
    }

    public Long getBlogComment() {
        return blogComment;
    }

    public void setBlogComment(Long blogComment) {
        this.blogComment = blogComment;
    }

    public Long getAdminId() {
        return adminId;
    }

    public void setAdminId(Long adminId) {
        this.adminId = adminId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}